package com.tobie.info.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tobie.info.entity.SpotEntity;
import com.tobie.info.mapper.SpotMapper;
import com.tobie.info.service.ISpotService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author lc
 * @Date 2023/11/20 15:34
 * @注释 景点信息实现类
 */
@Service
@Slf4j
public class SpotServiceImpl extends ServiceImpl<SpotMapper, SpotEntity> implements ISpotService {

    @Resource
    private SpotMapper spotMapper;

    @Override
    public List<SpotEntity> getAllSpot() {
        return this.baseMapper.selectList(null);
    }

    @Override
    public List<SpotEntity> getSpotByPositionName(String positionName) {
        return spotMapper.getSpotByPositionName(positionName);
    }
}
